import type { InjectionKey, Ref } from 'vue'

export type KeywordsModal = {
  keywords: Ref<string>,
  setKeywords: (value: string) => void
}

export type ShowModal = {
  isShowModal: Ref<boolean>,
  setShowModal: (value: boolean) => void
}

export const keywordsKey = Symbol() as InjectionKey<KeywordsModal>

// 是否显示模态框
export const showModalKey = Symbol() as InjectionKey<ShowModal>